package com.nulldev.util.uri.client.direct;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.Socket;
import java.net.URL;

@Deprecated
public class DirectHTTP implements Runnable {

	private Socket toConnectTo;
	
	public DirectHTTP(final URL url) throws IOException {
		this.toConnectTo = new Socket(url.getHost(), 
				(url.getPort() != -1 ? url.getPort() : url.getDefaultPort()));
	}

	@Override
	public void run() {
		try {
			final InputStream is = this.toConnectTo.getInputStream();
			final OutputStream os = this.toConnectTo.getOutputStream();
		}catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
}
